<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>基于object创建对象</title>
	</head>
	<body>
		<script type="text/javascript">
		var person=new Object();
		person.name="沈星星";
		person.age="24";
		person.gongzuo="台州晶丽灯饰市场部经理";
		person.zhuzhi="合肥";
		person.show=function(){
//			要调用属性需要加this
			document.write("姓名："+this.name+"<br />年龄："+this.age+"<br/>工作："+this.gongzuo+"<br />住址："+this.zhuzhi);
		}
		person.show();
		</script>
	</body>
</html>
